<template>
  <div>
    <p>{{ obj.name }}</p>
    <p>{{ obj.age > 18 ? "去网吧" : "老实敲代码" }}</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      obj: {
        name: "田华进",
        age: 18,
      },
    };
  },
};
</script>

<style>
</style>